﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Test3
{
    public partial class Form1 : Form
    {
        private Model model;

        public Form1()
        {
            InitializeComponent();
            model = new Model();

            loadKlantenDgv();
        }

        public void loadKlantenDgv()
        {
            DataTable dt = new DataTable();
            dt = model.getKlanten();
            dataGridView1.DataSource=dt;
        }
    }
}
